import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            component: () => import('../views/Layout/index.vue'),
            children: [
                {
                    path: '',
                    component: () => import('../views/Home/index.vue')
                },
                {
                    path: 'pricesummary',
                    component: () => import('../views/PriceSummary/index.vue')
                },
                // {
                //     path: 'sjsTest',
                //     component: () => import('../views/SjsTest/index.vue')
                // },
                // {
                //     path: 'swiperTest',
                //     component: () => import('../views/SwiperTest/index.vue')
                // },
                {
                    path: 'more',
                    component: () => import('../views/More/index.vue')
                }
            ]
        }
    ],
    scrollBehavior() {
        return { left: 0, top: 0 }
    }
})

export default router
